import request from '@/utils/request';

export function addPreDrug(token, preDrug) {
    return request({
        url: '/preDrug/add',
        method: 'post',
        data: preDrug,
        params: {
            token: token
        }
    });
}

export function fetchPreDrugList(preId) {
    return request({
        url: '/preDrug/listByPreId',
        method: 'get',
        params: {
            preId: preId
        }
    });
}
